/*
package com.sicaolong.pojo.impl;

import com.sicaolong.pojo.IUserDao;
import com.sicaolong.pojo.User;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

*/
/**
 * 这个只是临时的实现，最终使用代理类
 * @author : sicaolong
 * @description :
 * @date : 2020/11/1  12:19 上午
 *//*

public class UserDaoImpl implements IUserDao {
	@Override
	public List<User> findAll() throws IOException {
		InputStream resourceAsStream = Resources.getResourceAsStream("com.sicaolong.mapper/sqlMapperConfig.xml");
		SqlSessionFactory build = new SqlSessionFactoryBuilder().build(resourceAsStream);
		SqlSession sqlSession = build.openSession();
		List<User> users = sqlSession.selectList("userMapper.findAll");
		return users;
	}
}*/
